package com.anxuan.demo.test;

import com.anxuan.demo.model.City;
import com.anxuan.demo.model.School;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class beantest3 {


    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("springBean.xml");
        City city = (City) ctx.getBean("city");
        System.out.println(city);
    }
}
